package org.example.myleet.p752;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(6 == solution.openLock(new String[]{"0201","0101","0102","1212","2002"}, "0202"));
        Assert.isTrue(1 == solution.openLock(new String[]{"8888"}, "0009"));
        Assert.isTrue(-1 == solution.openLock(new String[]{"8887","8889","8878","8898","8788","8988","7888","9888"}, "8888"));
        Assert.isTrue(-1 == solution.openLock(new String[]{"0000"}, "8888"));
    }
}
